package com.art.sunflower.service;

import com.art.sunflower.exception.NullTeacherException;
import com.art.sunflower.pojo.Teacher;
import com.art.sunflower.util.MyPageInfo;

import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

public interface TeacherService {

    MyPageInfo getList(Integer pageSize, Integer pageNo) throws NullTeacherException;

    void add(String username, String password, String email, String phone, String name) throws NoSuchAlgorithmException;

    void update(Integer id, String username, String password, String email, String phone, String name) throws NoSuchAlgorithmException, NullTeacherException;

    void delete(Integer id) throws NullTeacherException;

    Map<String, Object> getById(Integer id) throws NullTeacherException;

    Teacher selectOneTeacherById(Integer id);

    List<Map<String, Object>> getNameList() throws NullTeacherException;

    void updateStatus(Integer id) throws NullTeacherException;

}
